#!/bin/bash

set -ex # echo all commands

exec > >(tee -a run.log) 2>&1 # write output to log file

# print system information to report in README
echo "Operating System:"; uname -a
echo "R Version:"; R --version

# execute all scripts in correct order

Rscript code/run_all_simulations.R
Rscript code/sims_tables_figures.R
Rscript code/armed_conflict_obtain_predictions.R
Rscript code/run_all_armed_conflict.R
Rscript code/armed_conflict_quantreg_intervals.R
Rscript code/armed_conflict_tables_figures.R
